﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI;


namespace Ext.Net
{
    partial class BaseControl
    {
        public new StateBag ViewState
        {
            get { return base.ViewState; }
            set
            {
                if (value == null) return;
                foreach (DictionaryEntry p in (IDictionary)value)
                {
                    base.ViewState[(string)p.Key] = ((StateItem)p.Value).Value;
                }
            }
        }
    }
}
